<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>手风琴效果</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
            background-color:pink;
            border: 1px solid #666666;

        }
        p{
            color: goldenrod;
            border: 1px solid #666666;
        }
        /*最外层边框*/
     .new{
         /*margin: 0 auto;*/
         width: 300px;
         text-align: center;
         margin: 0 auto;
         /*box: 1px solid #666666;*/
         transition: all 0.5s;
     }
        .newOne:hover .newDemo{
            height: 100px;
            /*display: block;*/
            /*transition: all 0.5s;*/
            opacity:1;
        }
        .newTwo{
            text-align: center;
            box: 1px solid #666666;
            transition: all 0.5s;
        }
        .newTwo:hover .newDemi{
            height: 100px;
            /*display: block;*/
            /*transition: all 0.5s;*/
            opacity:1;
        }
        .newDemo{
            height:0;
            width: 100%;
            transition: all 0.5s;
            opacity:0;
            /*display: none;*/
        }
        .newDemi{
            height: 0;
            width: 100%;
            transition: all 0.5s;
            opacity:0;
            /*display: none;*/
        }

    </style>

</head>
<body>
<div class="new">
    <div class="newOne">
       <p>市内新闻</p>
        <ul class="newDemo">
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
        </ul>
    </div>
    <div class="newTwo">
        <p>省内新闻</p>
        <ul class="newDemi">
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
        </ul>
    </div>
    <div class="newTwo">
        <p>省内新闻</p>
        <ul class="newDemi">
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
        </ul>
    </div>
    <div class="newTwo">
        <p>省内新闻</p>
        <ul class="newDemi">
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
            <li>哈哈哈哈哈</li>
        </ul>
    </div>

</div>

</body>
</html>